<?php
class Admin_Controllers_Product extends Libs_Controller{
    public function __construct() {
        parent::__construct();
    }
    public function index(){
        $this->view->render('product/index');
    }
    public function add(){
        $this->view->render('product/add');
    }
    
    public function insert(){
        $name = $_POST['txtName'];
        $price = $_POST['txtPrice'];
        
        $data = array('name'=>$name,'price'=>$price);
                
        $pro = new Admin_Models_Product();
        $pro->insert($data);
    }
}

?>
